﻿using LayuiMvc.DataEntity.DataEnum;
using Microsoft.AspNet.Identity.EntityFramework;
using System;

namespace LayuiMvc.DataEntity.IdentityEntity
{
    /// <summary>
    /// 用户实体类
    /// </summary>
    public class IdentityUserEntity :
        IdentityUser<int,
            IdentityUserLoginEntity,
            IdentityUserRoleEntity,
            IdentityUserClaimEntity>
    {

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime RegisterTime { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public int Sex { get; set; }

        /// <summary>
        /// 是否禁用
        /// </summary>
        public bool IsBanned { get; set; }

        /// <summary>
        /// 头像地址
        /// </summary>
        public string HeadImgUrl { get; set; }

        /// <summary>
        /// 用户身份标识
        /// </summary>
        public UserIdentityEnum UserIdentity { get; set; }

        /// <summary>
        /// 是否认证
        /// </summary>
        public bool IsApprove { get; set; }

        /// <summary>
        /// 认证信息
        /// </summary>
        public string ApproveMsg { get; set; }

        /// <summary>
        /// 所在城市
        /// </summary>
        public string City { get; set; }

        /// <summary>
        /// 个人介绍
        /// </summary>
        public string Introduce { get; set; }
    }
}
